//
//  XTWebview.m
//  TTLestening
//
//  Created by dllo on 16/3/25.
//  Copyright © 2016年 dilo. All rights reserved.
//

#import "XTWebview.h"

@interface XTWebview ()



@end

@implementation XTWebview

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.webview = [[UIWebView alloc]init];
    
    self.title = @"网页";
    
    self.webview.frame = [UIScreen mainScreen].bounds;
    [self.view addSubview:self.webview];
    self.webview.backgroundColor = [UIColor whiteColor];
          
        
    NSURL* url = [NSURL URLWithString:self.urlstring];//创建URL
    NSURLRequest* request = [NSURLRequest requestWithURL:url];//创建NSURLRequest
    
    [self.webview loadRequest:request];
       
    self.view.backgroundColor = [UIColor orangeColor];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
